package com.aaa.service.mht.impl;


import com.aaa.dao.mht.TMhtRecordDedtailMapper;
import com.aaa.entity.mht.TMhtRecordDedtail;
import com.aaa.service.mht.TMhtRecordDedtailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (TMhtRecordDedtail)表服务实现类
 */
@Service
public class TMhtRecordDedtailServiceImpl implements TMhtRecordDedtailService {
   @Autowired
   private TMhtRecordDedtailMapper tMhtRecordDedtailMapper;

   @Override
   public boolean insertBatch(List<TMhtRecordDedtail> details) {
      int i=0;
      for (TMhtRecordDedtail detail : details) {
         i+=tMhtRecordDedtailMapper.insert(detail);
      }
      System.out.println("i =========================================================================== " + i);
      return details.size()==i;
   }
}

